package com.cvicse.jrcompetition01.entity;

import com.cvicse.jrcompetition01.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者:kissshotwang@163.com
 * @since 2022-07-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Department extends BaseEntity implements Comparable<Department> {

    private static final long serialVersionUID = 1L;

    private String mechanismDepartmentNumber;

    private String mechanismDepartment;

    private String sponsorFinancingManager;

    private String coFinancingManager;

    private String remark;

    private LocalDate created;


    @Override
    public int compareTo(Department o) {
        return this.created.compareTo(o.getCreated());
    }
}
